word problems on interchanging digits